package com.zzyl.mapper;

import com.zzyl.entity.Resource;
import com.zzyl.vo.ResourceVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ResourceMapper {
    List<ResourceVo> getResourceList(Resource bean);

    String selectcount(String parentResourceNo);

    void insert(Resource resource);

    void updateResource(Resource resource);

    void isEnable(Resource resource);


    void isEnableson(@Param(value = "resourceNo") String resourceNo,@Param(value = "dataState") String dataState);


    String getDataStateByResourceNo(String parentResourceNo);

    void deleteResource(String resourceNo);
}
